package com.yhd.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yhd.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * @author yinhuidong
 * @createTime 2020-07-08-18:10
 */
public interface ArticleService extends IService<Article> {
    public IPage<Map<String,Object>> getPageInfo(Map<String, Object> queryParam, int offset, int size);
    public IPage<Map<String,Object>> getPageInfoByPageNum(Map<String, Object> queryParam, int pagenum, int size);
    public Article getNextInfo(Map<String, Object> searchParam);
    public Article getPreInfo(Map<String, Object> searchParam);
    public boolean deleteArticleAndCommentById(Integer id);
}
